package com.qww.exec08;

/**
 * @author qww
 * @date 2021-04-06 22:35
 */
public class Exec08 {

    public static void main(String[] args) {
        ConnectionManager manager = ConnectionManager.INSTANCE;
        Connection conn = manager.getConnection();
        Connection conn2 = manager.getConnection();
        Connection conn3 = manager.getConnection();
        Connection conn4 = manager.getConnection();
        Connection conn5 = manager.getConnection();
        Connection[] conns = manager.getConns();
        if (conns  != null) {
            for (Connection connection : conns) {
                System.out.println(connection);
            }
        }
    }
}

